home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
293_01
/
t3.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-08-23
|
242 b
|
12 lines
#include <stdio.h>
#include <math.h>
main()
{
int ang;
for (ang = 0; ang < 90; ang += 5) {
printf("ang = %d ixmax = %d, %f\n", ang, (255*ang)/90,
127.5*(1.0 + sqrt(2.0)*sin(((double) ang - 45.0)*3.14/180.)));
}
}